-- GENERATED SPELL FOR [Planar Anomaly] --


function spell0_30879(pUnit, Event) --@Planar Blast,Self--
pUnit:FullCastSpellOnTarget(57976,pUnit)
pUnit:RegisterEvent('Sorts_30879', 536, 1)
end

function Sorts_30879(pUnit, Event)
local choix_sorts_30879 = math.random(0, 0)
if choix_sorts_30879 == 0 then
pUnit:RegisterEvent('spell0_30879', 1, 1)
end
end

function mob30879_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30879', math.random(1500, 3000), 1)
end

function mob30879_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30879_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30879_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30879, 1, 'mob30879_Action')
RegisterUnitEvent(30879, 2, 'mob30879_Leave')
RegisterUnitEvent(30879, 3, 'mob30879_Kill')
RegisterUnitEvent(30879, 4, 'mob30879_Die')
